﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.WindowsAzure.StorageClient;
using System.Data.Services.Common;

namespace Azure.TableQuery.Core
{
    // Modified from Jai Haridas: http://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/481afa1b-03a9-42d9-ae79-9d5dc33b9297/
    public class GenericEntity : TableServiceEntity
    {
        Dictionary<string, Type> properties = new Dictionary<string, Type>();

        string tableName;
        public string GetTableName()
        {
            return tableName;
        }

        public void SetTableName(string tableName)
        {
            this.tableName = tableName;
        }

        internal Type this[string key]
        {
            get
            {
                return this.properties[key];
            }

            set
            {
                this.properties[key] = value;
            }
        }  

        public Dictionary<string, Type> GetProperties() 
        { 
            return properties; 
        } 
                
        public override string ToString()   
        {   
            return "";   
        }   
    }   

}
